package com.wqj.kyee.gps.util;

import com.amap.api.maps.model.LatLng;

public class Constants {

	public static final int ERROR = 1001;// 网络异常
	public static final int ROUTE_START_SEARCH = 2000;
	public static final int ROUTE_END_SEARCH = 2001;
	public static final int ROUTE_BUS_RESULT = 2002;// 路径规划中公交模式
	public static final int ROUTE_DRIVING_RESULT = 2003;// 路径规划中驾车模式
	public static final int ROUTE_WALK_RESULT = 2004;// 路径规划中步行模式
	public static final int ROUTE_NO_RESULT = 2005;// 路径规划没有搜索到结果

	public static final int GEOCODER_RESULT = 3000;// 地理编码或者逆地理编码成功
	public static final int GEOCODER_NO_RESULT = 3001;// 地理编码或者逆地理编码没有数据

	public static final int POISEARCH = 4000;// poi搜索到结果
	public static final int POISEARCH_NO_RESULT = 4001;// poi没有搜索到结果
	public static final int POISEARCH_NEXT = 5000;// poi搜索下一页

	public static final int BUSLINE_LINE_RESULT = 6001;// 公交线路查询
	public static final int BUSLINE_id_RESULT = 6002;// 公交id查询
	public static final int BUSLINE_NO_RESULT = 6003;// 异常情况

	public static final LatLng BEIJING = new LatLng(39.90403, 116.407525);// 北京市经纬度
	public static final LatLng ZHONGGUANCUN = new LatLng(39.983456, 116.3154950);// 北京市中关村经纬度
	public static final LatLng SHANGHAI = new LatLng(31.238068, 121.501654);// 上海市经纬度
	public static final LatLng FANGHENG = new LatLng(39.989614, 116.481763);// 方恒国际中心经纬度
	public static final LatLng CHENGDU = new LatLng(30.679879, 104.064855);// 成都市经纬度
	public static final LatLng XIAN = new LatLng(34.341568, 108.940174);// 西安市经纬度
	public static final LatLng ZHENGZHOU = new LatLng(34.7466, 113.625367);// 郑州市经纬度

	public static final String NMEA_FIELD_SEPARATOR = ",";
	public static final  int  NMEA_CHS_SEPARATOR = '*'; // checksum
	public static final String NMEA_TOKEN_RMC = "RMC";
	public static final String NMEA_TOKEN_GGA = "GGA";
	public static final String NMEA_TOKEN_GSV = "GSV";
	public static final String NMEA_TOKEN_GSA = "GSA";
	public static final String NMEA_PROPRIETARY_TOKEN_AHRS = "TMDRAHRS";


	public static final int SEARCH_REQUEST_CODE = 100;
	public static final int SEARCH_RESULT_CODE = 200;

	public static final int SEARCH_REQUSET_HOME_CODE = 600;
	public static final int SEARCH_REQUEST_COMPANY_CODE = 601;

	public static final int SEARCH_ARROUND_RESULT_CODE = 300;

	public static final int SEARCH_START_REQUEST_CODE = 400;
	public static final int SEARCH_END_REQUEST_CODE = 401;
	public static final int SEARCH_LOCATION_RESULT_CODE = 500;

	public static final String EXTRA_CURRENT_CITY = "city";
	public static final String EXTRA_KEYWORD = "keyword";
	public static final String EXTRA_HINT = "hint";
	public static final String EXTRA_POI = "poi";
	public static final String EXTRA_POIITEM = "poiitem";
	public static final String EXTRA_POINTTYPE = "pointType";

	public static final String EXTRA_CURRENT_LAT = "current_latitude";
	public static final String EXTRA_CURRENT_LNG = "current_longitude";

	public static final int EXTRA_SEACH_POI = 1;
	public static final int EXTRA_SEARCH_POI_ARROUND = 2;

	public static final int EXTRA_POI_TYPE_HOME = 5;
	public static final int EXTRA_POI_TYPE_COMPANY = 6;

	//public static final String APP_Preferences = "APP_Preferences";
	public static final String Navi_Preferences = "Navi_Preferences";
	public static final String SP_KEY_LicensePlateNumber = "sp_LicensePlateNumber";
	public static final String SP_KEY_IsRestrict = "sp_IsRestrict";
	public static final String SP_KEY_Congestion = "sp_Congestion";
	public static final String SP_KEY_Cost = "sp_Cost";
	public static final String SP_KEY_AvoidHightSpeed = "sp_AvoidHightSpeed";
	public static final String SP_KEY_HightSpeed = "sp_HightSpeed";


	public static final int History_Item_MAX_Nums = 10;
	public static final String History_Preferences = "History_Preferences";
	public static final String SP_KEY_ITEM_NUMS = "item_numbers";
	public static final String SP_KEY_CURRENT_INDEX = "current_idx";
	public static final String SP_KEY_ITEM_PREFIX = "item";

	public static final String BTDevice_Preferences = "BTDevice_Preferences";
	public static final String SP_KEY_BT_DEVICE_ADRESS = "bt-adress";
	public static final String SP_KEY_BT_DEVICE_NAME = "bt-name";
	public static final String SP_KEY_BT_IS_AUTO_CONNECT = "bt-autoconnect";


	public static final String CustomLocation_Preferences = "CustomLocation_Preferences";
	public static final String SP_KEY_LOCATION_HOME = "home";
	public static final String SP_KEY_LOCATION_COMPANY = "company";
	public static final String FIELD_SEPARATOR = ";";
//	public static final String SP_KEY_ITEM10 = "item10";
//	public static final String SP_KEY_ITEM9 = "item9";
//	public static final String SP_KEY_ITEM8 = "item8";
//	public static final String SP_KEY_ITEM7 = "item7";
//	public static final String SP_KEY_ITEM6 = "item6";
//	public static final String SP_KEY_ITEM5 = "item5";
//	public static final String SP_KEY_ITEM4 = "item4";
//	public static final String SP_KEY_ITEM3 = "item3";
//	public static final String SP_KEY_ITEM2 = "item2";
//	public static final String SP_KEY_ITEM1 = "item1";

	public class SatelliteNumbering {
		public static final int MIN_GPS = 1;
		public static final int MAX_GPS = 32;

		public static final int MIN_SBAS = 33;
		public static final int MAX_SBAS = 51;

		public static final int MIN_GLONASS = 65;
		public static final int MAX_GLONASS = 92;

		public static final int MIN_BEIDOU = 141;
		public static final int MAX_BEIDOU = 180;

		public static final int MIN_QZSS = 183;
		public static final int MAX_QZSS = 297;

		public static final int MIN_GALILEO = 301;
		public static final int MAX_GALILEO = 330;
	}
}
